package org.sunflower.t.wxpaytest.infrastructure;

import org.sunflower.t.wxpaytest.infrastructure.exception.WxPayV3Exception;

/**
 * @author tanjingyu
 */
public interface WxPayV3PropertiesCalibrator {

    /**
     * 校准
     * @param properties 配置文件
     */
    default void correct(WxPayV3Properties properties) {
        if (properties.getSecret().getApiV3Key() == null) {
            throw new WxPayV3Exception("ApiV3Key未配置！");
        }
    }
}
